package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 血缘关系对象 sys_data_lineage
 * 
 * @author ruoyi
 */
@Data
public class SysDataLineage
{
    private static final long serialVersionUID = 1L;

    /** 血缘ID */
    private Long lineageId;

    /** 上游资产ID */
    private Long sourceAssetId;

    /** 下游资产ID */
    private Long targetAssetId;

    /** 操作ID(关联sys_oper_log) */
    private Long operationId;

    /** 关系类型(insert/select/export) */
    private String relationType;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    // 非数据库字段，用于前端展示
    private String sourceAssetName;
    private String targetAssetName;
    private String sourceAssetType;
    private String targetAssetType;

    /** 创建者 */
    private String createBy;



    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
